home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
util
/
batch
/
TTTool.lha
/
TTTool.readme
next >
Wrap
Text File
|
1997-08-16
|
1KB
|
36 lines
Short: Prints icon Tooltype value to StdOut - cli only - V1.1
Uploader: peter@apsayton.demon.co.uk (A.P. Suggitt)
Author: A.P. Suggitt, Great Ayton.
Type: util/batch
Requires: WB 2.04+
Purpose: To read Tooltype value from Icon and print value to StdOut so
an IconX/XIcon/IconJ script can get it's variable parameters
from the icon instead of be in the script it'self or by the
use of enviroment variables.
Use: The code is pure and can be made Resident, it has the following
WB 2.0 Template:-
INPUTS
Template: TTTool FILE/A,TOOLTYPE,TOOLVALUE,DEFTOOL/S,NOQUOTE/S,NOLINE/S
FILE Filename of the File with the Icon to search (note .info not needed)
TOOLTYPE the Tooltype keyword to search for
TOOLVALUE Specific Value To check for
DEFTOOL Output the Default Tool string
NOQUOTE Do not put output string within Qoute marks
NOLINE Do not output a new line character after the string
RESULTS
RC=0 If no options given outputs list of all tooltypes
RC=0 If the Tooltype exists (and matches TOOLVALUE if given)
RC=5 If the Tooltype not found (or not matching TOOLVALUE if given)
RC=10 If the required .info file is not found
If the Tooltype in the Icon has a value this value is sent to STDOUT
whether or not it matches the requested TOOLVALE